package com.riatimes.mvc.model.vo
{
	/**
	 * VO基类
	 */
	public class BaseVO 
	{
		/**
		 * 给类公有属性赋值 
		 * @param descriptor
		 * 
		 */		
		protected function createObjectFromDescriptor( descriptor:Object ):void
		{
			var prop:String;
			for ( prop in descriptor )
			{
				if ( this.hasOwnProperty( prop ) ) {
					if (typeof (this[ prop ]) == "number")
						this[ prop ] = int(descriptor[ prop ]);
					else
						this[ prop ] = descriptor[ prop ];
				}
			}
		}
	}

}